package org.bling.star.common.command;


public class JoinCommand extends ClientCommand {
    private static final long serialVersionUID = -5212277997780604496L;
    private String secretKey;

    public JoinCommand() {
    }

    public String getSecretKey() {
        return this.secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof JoinCommand)) return false;
        final JoinCommand other = (JoinCommand) o;
        if (!other.canEqual(this)) return false;
        final Object this$secretKey = this.getSecretKey();
        final Object other$secretKey = other.getSecretKey();
        return this$secretKey == null ? other$secretKey == null : this$secretKey.equals(other$secretKey);
    }

    protected boolean canEqual(final Object other) {
        return other instanceof JoinCommand;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $secretKey = this.getSecretKey();
        result = result * PRIME + ($secretKey == null ? 43 : $secretKey.hashCode());
        return result;
    }

    public String toString() {
        return "JoinCommand(secretKey=" + this.getSecretKey() + ")";
    }
}
